{% extends "base_jrcadmin2.html" %}

{% block content %}
    <table>
        <tr>
            <th>
            PK
            </th><th>
            Name
            </th><th>
            File name
            </th><th>
            CST
            </th><th>
            File size
            </th><th>
            Created
            </th><th>
            Actions
            </th><th>
        </tr>
        {% for f in object_list %}
            <tr class="{% cycle "row1" "row2" %}">
                <td>{{ f.pk }}</td>
                <td>{{ f.original_name }}</td>
                <td>{{ f.import_file.name }}</td>
                <td><a href="#">{{ f.cst_id }}</a></td>
                <td>{{ f.import_file.size|filesizeformat }}</td>
                <td>{{ f.created_at|date:"Y-M-d H:i" }}</td>
                <td>
                    <a href="/tradinglist/{{ f.pk }}/monthly_stat/" class="viewlink">By month</a>
                    <a href="/ximport/uploadfile/{{ f.pk }}/delete/" class="deletelink">Delete</a>
                </td>
            </tr>
        {% empty %}
            <tr>
                <td colspan="5">No files</td>
            </tr>
        {% endfor %}
    </table>

{% endblock %}

{% block js_on_load %}

    jQuery("#MenuItemTrading").attr("class", "active");

{% endblock %}
